/**
 * Created by c.y on 2018/3/29.
 * 这个是项目路由
 */


// 路由配置
export default {
    routes: [
        //======================== 空白路由界面 ==========================
        {
            path: '/', //
            name: '/',
            component: function (resolve) {
                require(['../views/index/authority'], resolve);
            }
        },
        {
            path: '/index', //
            name: 'index',
            component: function (resolve) {
                require(['../views/index/authority'], resolve);
            }
        },
        {
            path: '/index/shareList', // 分享
            name: 'index/shareList',
            component: function (resolve) {
                require(['../views/index/shareList'], resolve);
            }
        },
        {
            path: '/index/shareDetail', // 分享详情页
            name: 'index/shareDetail',
            component: function (resolve) {
                require(['../views/index/shareDetail'], resolve);
            }
        },
        {
            path: '/index/videoList', // 小视频列表
            name: 'index/videoList',
            component: function (resolve) {
                require(['../views/index/videoList'], resolve);
            }
        },
        {
            path: '/index/videoDetails', // 小视频详情
            name: 'index/videoDetails',
            component: function (resolve) {
                require(['../views/index/videoDetails'], resolve);
            }
        },
        {
            path: '/index/noticeList', // 通知列表
            name: 'index/noticeList',
            component: function (resolve) {
                require(['../views/index/noticeList'], resolve);
            }
        },
        {
            path: '/index/noticeDetail', // 通知详情
            name: 'index/noticeDetail',
            component: function (resolve) {
                require(['../views/index/noticeDetail'], resolve);
            }
        },
        {
            path: '/index/circularList', // 通报列表
            name: 'index/circularList',
            component: function (resolve) {
                require(['../views/index/circularList'], resolve);
            }
        },
        {
            path: '/index/circularDetail', // 通报详情
            name: 'index/circularDetail',
            component: function (resolve) {
                require(['../views/index/circularDetail'], resolve);
            }
        },
        {
            path: '/index/uploadingList', // 制度文件列表
            name: 'index/uploadingList',
            component: function (resolve) {
                require(['../views/index/uploadingList'], resolve);
            }
        },
        {
            path: '/index/uploadingDetail', // 制度文件详情
            name: 'index/uploadingDetail',
            component: function (resolve) {
                require(['../views/index/uploadingDetail'], resolve);
            }
        },
        {
            path: '/index/questionList', // 问题列表
            name: 'index/questionList',
            component: function (resolve) {
                require(['../views/index/questionList'], resolve);
            }
        },
        {
            path: '/index/questionDetail', // 问题详情
            name: 'index/questionDetail',
            component: function (resolve) {
                require(['../views/index/questionDetail'], resolve);
            }
        },
        {
            path: '/index/odoracleList', // 报表明细列表
            name: 'index/odoracleList',
            component: function (resolve) {
                require(['../views/index/odoracleList'], resolve);
            }
        },
        {
            path: '/index/odoracleDetail', // 报表明细详情
            name: 'index/odoracleDetail',
            component: function (resolve) {
                require(['../views/index/odoracleDetail'], resolve);
            }
        },
        {
            path: '/index/bookList', // 报表明细详情
            name: 'index/bookList',
            component: function (resolve) {
                require(['../views/index/addressBookList'], resolve);
            }
        }
    ]
};
